package lanqiao.dontaiguihua.meiju;
//硬币兑换

public class Lan3501 {

    public static void main(String[] args) {
        int n=2023;
        int[] coins=new int[n*2];
        for(int i=1;i<=n;i++){
            for(int j=i+1;j<n;j++){
                coins[i+j]=i;
            }
        }
        int count=0;
        for(int i=1;i<coins.length;i++){
            count=Math.max(count,coins[i]);
        }
            System.out.println(count);
    }
}
